package com.ruoyi.project.cms.product.mapper;

import com.ruoyi.project.cms.product.domain.ProductSpec;

import java.util.List;

/**
 * @CreateTime 2020/5/18 14:49
 */
public interface SpecMapper {
    //查询所有
    public List<ProductSpec> selectAllName();
    //查询所有(条件)
    public List<ProductSpec> selectAll(ProductSpec spec);
    //校验新增规格信息是否有重复
    public ProductSpec checkSpecNameUnique(String specName);
    //增加一个规格
    public int insertSpec(ProductSpec spec);
    //根据id查询
    public ProductSpec selectSpecById(Long specId);
    //修改规格信息
    public int updateSpec(ProductSpec spec);
    //删除规格信息
    public int deleteSpecByIds(Long[] ids);
}
